import Mock from 'mockjs'
import LoginAPI from './login'
import { Piclist, defaultPic } from './pic'
import Matter from './matter'
import Tables from './table'

Mock.setup({
    timeout:'350-600'
})

//登录
Mock.mock(/\login\/login/,'post',LoginAPI.loginByUsername)
//请求图片数据
Mock.mock(/\matter\/linktable/,'get',Matter.getLinkTables)
Mock.mock(/\pic\/pic/,'get', Piclist)
Mock.mock(/\pic\/defaultPic/,'get', defaultPic)
//表格
Mock.mock(/\table\/table/,'get',Tables.getTableData)
export default Mock
